.class public Lcom/instagram/android/feed/a/b/a;
.super Ljava/lang/Object;
.source "FeedMediaRowViewBinder.java"


# static fields
.field private static final a:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class",
            "<",
            "Lcom/instagram/android/feed/a/b/a;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private final b:Landroid/content/Context;

.field private final c:Landroid/support/v4/app/aj;

.field private final d:Landroid/support/v4/app/r;

.field private final e:Lcom/instagram/android/feed/a/b/f;

.field private final f:Lcom/instagram/b/d;

.field private final g:Lcom/instagram/android/fragment/ak;

.field private final h:Lcom/instagram/android/feed/a/b/o;

.field private final i:Lcom/instagram/android/feed/a/b/z;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 43
    const-class v0, Lcom/instagram/android/feed/a/b/a;

    sput-object v0, Lcom/instagram/android/feed/a/b/a;->a:Ljava/lang/Class;

    return-void
.end method

.method public constructor <init>(Lcom/instagram/android/fragment/d;Lcom/instagram/android/feed/a/b/f;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 55
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    .line 56
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->u()Landroid/support/v4/app/aj;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/a;->c:Landroid/support/v4/app/aj;

    .line 57
    invoke-virtual {p1}, Lcom/instagram/android/fragment/d;->m()Landroid/support/v4/app/r;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/a;->d:Landroid/support/v4/app/r;

    .line 58
    iput-object p1, p0, Lcom/instagram/android/feed/a/b/a;->f:Lcom/instagram/b/d;

    .line 59
    iput-object p1, p0, Lcom/instagram/android/feed/a/b/a;->g:Lcom/instagram/android/fragment/ak;

    .line 60
    iput-object p2, p0, Lcom/instagram/android/feed/a/b/a;->e:Lcom/instagram/android/feed/a/b/f;

    .line 61
    new-instance v0, Lcom/instagram/android/feed/a/b/o;

    iget-object v1, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/instagram/android/feed/a/b/a;->d:Landroid/support/v4/app/r;

    iget-object v3, p0, Lcom/instagram/android/feed/a/b/a;->f:Lcom/instagram/b/d;

    invoke-direct {v0, v1, v2, v3}, Lcom/instagram/android/feed/a/b/o;-><init>(Landroid/content/Context;Landroid/support/v4/app/r;Lcom/instagram/b/d;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/a;->h:Lcom/instagram/android/feed/a/b/o;

    .line 63
    new-instance v0, Lcom/instagram/android/feed/a/b/z;

    iget-object v1, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    iget-object v2, p0, Lcom/instagram/android/feed/a/b/a;->e:Lcom/instagram/android/feed/a/b/f;

    invoke-direct {v0, v1, v2}, Lcom/instagram/android/feed/a/b/z;-><init>(Landroid/content/Context;Lcom/instagram/android/feed/a/b/ad;)V

    iput-object v0, p0, Lcom/instagram/android/feed/a/b/a;->i:Lcom/instagram/android/feed/a/b/z;

    .line 64
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/a/b/a;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    return-object v0
.end method

.method private a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/g;
    .locals 2
    .parameter

    .prologue
    .line 180
    new-instance v1, Lcom/instagram/android/feed/a/b/g;

    invoke-direct {v1}, Lcom/instagram/android/feed/a/b/g;-><init>()V

    .line 181
    sget v0, Lcom/facebook/aw;->row_feed_photo_textview_comments:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->c:Landroid/widget/TextView;

    .line 182
    sget v0, Lcom/facebook/aw;->row_feed_photo_comments_group:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->i:Landroid/view/ViewGroup;

    .line 183
    sget v0, Lcom/facebook/aw;->row_feed_photo_likes_group:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->h:Landroid/view/ViewGroup;

    .line 184
    sget v0, Lcom/facebook/aw;->row_feed_photo_textview_likes:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->d:Landroid/widget/TextView;

    .line 185
    sget v0, Lcom/facebook/aw;->row_feed_photo_toggle_button_like:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CompoundButton;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->e:Landroid/widget/CompoundButton;

    .line 188
    sget v0, Lcom/facebook/aw;->row_feed_photo_button_comment:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->f:Landroid/widget/ImageView;

    .line 189
    sget v0, Lcom/facebook/aw;->row_feed_photo_button_options:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/ui/MediaOptionsButton;

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->g:Lcom/instagram/android/feed/ui/MediaOptionsButton;

    .line 192
    invoke-static {p1}, Lcom/instagram/android/feed/a/b/o;->a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/t;

    move-result-object v0

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->a:Lcom/instagram/android/feed/a/b/t;

    .line 193
    invoke-static {p1}, Lcom/instagram/android/feed/a/b/z;->a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/ae;

    move-result-object v0

    iput-object v0, v1, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    .line 194
    return-object v1
.end method

.method static synthetic b(Lcom/instagram/android/feed/a/b/a;)Landroid/support/v4/app/aj;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->c:Landroid/support/v4/app/aj;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/feed/a/b/a;)Lcom/instagram/android/fragment/ak;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->g:Lcom/instagram/android/fragment/ak;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/feed/a/b/a;)Lcom/instagram/b/d;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->f:Lcom/instagram/b/d;

    return-object v0
.end method

.method static synthetic e(Lcom/instagram/android/feed/a/b/a;)Landroid/support/v4/app/r;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->d:Landroid/support/v4/app/r;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/feed/a/b/a;)Lcom/instagram/android/feed/a/b/f;
    .locals 1
    .parameter

    .prologue
    .line 41
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->e:Lcom/instagram/android/feed/a/b/f;

    return-object v0
.end method


# virtual methods
.method public a()Landroid/view/View;
    .locals 4

    .prologue
    .line 166
    const-string v0, "%s#%s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    sget-object v3, Lcom/instagram/android/feed/a/b/a;->a:Ljava/lang/Class;

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-string v3, "newView"

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Lcom/facebook/e/b/g;->a(Ljava/lang/String;[Ljava/lang/Object;)Lcom/facebook/e/b/g;

    move-result-object v1

    .line 168
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 169
    sget v2, Lcom/facebook/ax;->row_feed_photo:I

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 170
    invoke-direct {p0, v0}, Lcom/instagram/android/feed/a/b/a;->a(Landroid/view/View;)Lcom/instagram/android/feed/a/b/g;

    move-result-object v2

    .line 171
    invoke-virtual {v0, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 172
    iget-object v3, v2, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    iget-object v3, v3, Lcom/instagram/android/feed/a/b/ae;->a:Landroid/view/ViewGroup;

    iget-object v2, v2, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    invoke-virtual {v3, v2}, Landroid/view/ViewGroup;->setTag(Ljava/lang/Object;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 175
    invoke-virtual {v1}, Lcom/facebook/e/b/g;->a()V

    return-object v0

    :catchall_0
    move-exception v0

    invoke-virtual {v1}, Lcom/facebook/e/b/g;->a()V

    throw v0
.end method

.method public a(Landroid/view/View;Lcom/instagram/j/l;IZLcom/instagram/creation/video/ui/g;)V
    .locals 9
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v8, 0x8

    const/4 v7, 0x0

    .line 73
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    move-object v6, v0

    check-cast v6, Lcom/instagram/android/feed/a/b/g;

    .line 77
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->h:Lcom/instagram/android/feed/a/b/o;

    iget-object v1, v6, Lcom/instagram/android/feed/a/b/g;->a:Lcom/instagram/android/feed/a/b/t;

    invoke-virtual {v0, v1, p2}, Lcom/instagram/android/feed/a/b/o;->a(Lcom/instagram/android/feed/a/b/t;Lcom/instagram/j/l;)V

    .line 81
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->i:Lcom/instagram/android/feed/a/b/z;

    iget-object v1, v6, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    move-object v2, p2

    move v3, p3

    move v4, p4

    move-object v5, p5

    invoke-virtual/range {v0 .. v5}, Lcom/instagram/android/feed/a/b/z;->a(Lcom/instagram/android/feed/a/b/ae;Lcom/instagram/j/l;IZLcom/instagram/creation/video/ui/g;)V

    .line 85
    invoke-virtual {p2}, Lcom/instagram/j/l;->d()I

    move-result v0

    if-lez v0, :cond_0

    .line 86
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->d:Landroid/widget/TextView;

    invoke-static {}, Lcom/instagram/j/q;->a()Lcom/instagram/j/q;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v1, v2, p2}, Lcom/instagram/j/q;->a(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 89
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->d:Landroid/widget/TextView;

    new-instance v1, Landroid/text/method/LinkMovementMethod;

    invoke-direct {v1}, Landroid/text/method/LinkMovementMethod;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 90
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v7}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 95
    :goto_0
    invoke-virtual {p2}, Lcom/instagram/j/l;->n()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-lez v0, :cond_1

    .line 96
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->c:Landroid/widget/TextView;

    invoke-static {}, Lcom/instagram/j/q;->a()Lcom/instagram/j/q;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/feed/a/b/a;->b:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v1, v2, p2}, Lcom/instagram/j/q;->b(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 98
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->c:Landroid/widget/TextView;

    new-instance v1, Landroid/text/method/LinkMovementMethod;

    invoke-direct {v1}, Landroid/text/method/LinkMovementMethod;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 99
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->i:Landroid/view/ViewGroup;

    invoke-virtual {v0, v7}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 105
    :goto_1
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->e:Landroid/widget/CompoundButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 106
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->e:Landroid/widget/CompoundButton;

    invoke-virtual {p2}, Lcom/instagram/j/l;->m()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setChecked(Z)V

    .line 107
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->e:Landroid/widget/CompoundButton;

    new-instance v1, Lcom/instagram/android/feed/a/b/b;

    invoke-direct {v1, p0, p2, p3}, Lcom/instagram/android/feed/a/b/b;-><init>(Lcom/instagram/android/feed/a/b/a;Lcom/instagram/j/l;I)V

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 124
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->f:Landroid/widget/ImageView;

    new-instance v1, Lcom/instagram/android/feed/a/b/c;

    invoke-direct {v1, p0, p2, p3}, Lcom/instagram/android/feed/a/b/c;-><init>(Lcom/instagram/android/feed/a/b/a;Lcom/instagram/j/l;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 141
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->g:Lcom/instagram/android/feed/ui/MediaOptionsButton;

    new-instance v1, Lcom/instagram/android/feed/a/b/d;

    invoke-direct {v1, p0, p2, p1, p3}, Lcom/instagram/android/feed/a/b/d;-><init>(Lcom/instagram/android/feed/a/b/a;Lcom/instagram/j/l;Landroid/view/View;I)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/ui/MediaOptionsButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 151
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->g:Lcom/instagram/android/feed/ui/MediaOptionsButton;

    iget-object v1, v6, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    iget-object v1, v1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v1}, Lcom/instagram/android/mediacache/i;->b()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/ui/MediaOptionsButton;->setEnabled(Z)V

    .line 152
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->g:Lcom/instagram/android/feed/ui/MediaOptionsButton;

    iget-object v1, v6, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    iget-object v1, v1, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    invoke-virtual {v1}, Lcom/instagram/android/mediacache/i;->b()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/ui/MediaOptionsButton;->setClickable(Z)V

    .line 154
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->b:Lcom/instagram/android/feed/a/b/ae;

    iget-object v0, v0, Lcom/instagram/android/feed/a/b/ae;->b:Lcom/instagram/android/mediacache/i;

    new-instance v1, Lcom/instagram/android/feed/a/b/e;

    invoke-direct {v1, p0, v6}, Lcom/instagram/android/feed/a/b/e;-><init>(Lcom/instagram/android/feed/a/b/a;Lcom/instagram/android/feed/a/b/g;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/i;->a(Lcom/instagram/android/mediacache/m;)V

    .line 163
    return-void

    .line 92
    :cond_0
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->h:Landroid/view/ViewGroup;

    invoke-virtual {v0, v8}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto/16 :goto_0

    .line 101
    :cond_1
    iget-object v0, v6, Lcom/instagram/android/feed/a/b/g;->i:Landroid/view/ViewGroup;

    invoke-virtual {v0, v8}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_1
.end method

.method public a(Lcom/instagram/android/feed/a/b/t;Lcom/instagram/j/l;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 201
    iget-object v0, p0, Lcom/instagram/android/feed/a/b/a;->h:Lcom/instagram/android/feed/a/b/o;

    invoke-virtual {v0, p1, p2}, Lcom/instagram/android/feed/a/b/o;->a(Lcom/instagram/android/feed/a/b/t;Lcom/instagram/j/l;)V

    .line 202
    return-void
.end method
